<template>
  <el-config-provider :locale="zhCn">
    <el-container class="system">
      <el-header class="system-header">
        <span class="system-header__title">任务管理系统</span>
      </el-header>
      <el-container class="system-content">
        <el-aside class="system-aside">
          <el-menu class="system-aside__menu">
            <el-menu-item>任务列表</el-menu-item>
            <el-menu-item>用户管理</el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </el-config-provider>
</template>
<script lang="ts">
export default defineComponent({
  name: "LoginPage",
})
</script>

<script lang="ts" setup>
//@ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs"
</script>

<style lang="less" scoped>
.system {
  height: 100%;
  &-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ccc;
    &__title {
      font-size: 25px;
      letter-spacing: 6px;
    }
  }
  &-aside {
    &__menu {
      height: 100%;
    }
  }
  &-content {
    height: calc(100% - @systemHeight);
  }
}
</style>
